<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<!DOCTYPE html>

<html>
<head>
<%@include file="/WEB-INF/views/layout/base.ref.jsp"%>
<%@include file="/WEB-INF/views/layout/valid.ref.jsp"%>
</head>
<body>
	<form method="post" id="form1" action="${ctx}/sysUser/save">
		<input type="hidden" name="id" value="${user.id}" />
		<%@include file="/WEB-INF/views/login/home/toolbar.jsp"%>
		<div class="mtcontent">
			<div class="mtheader">
				<shiro:hasPermission name="sysUser:edit">
					<a class="mtbtn one" href="#" onclick="hrefSave_OnClick('form1')"><i class="mtfa mt-dui"></i><span>保存</span></a>
				</shiro:hasPermission>
				<a class="mtbtn two" href="#" onclick="hrefRet_OnClick('${ctx}/sysUser/list')"><i class="mtfa mt-refresh"></i><span>返回</span></a>
			</div>
			<div class="mtbody">
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel" for="trueName">姓名 </label> <span class="block mtinput3 mticon-input mticon-input-right">
							<input type="text" id="trueName" name="trueName" class="required" value="${user.trueName}" /><i
							class="mtfa mt-star mtred"></i>
						</span>
					</div>
				</div>
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel" for="serils">员工编号 </label> <span class="block mtinput3 mticon-input mticon-input-right">
							<input type="text" id="serils" name="serils" class="required" value="${user.serils}" /><i
							class="mtfa mt-star mtred"></i>
						</span>
					</div>
				</div>
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel">所属部门 </label><span class="block mtinput2 mticon-input mticon-input-right"><i
							class="mtfa mt-search mtblue mtpointer" id="deptSelect"></i> <input type="hidden" sysSelectResultName="result1_2"
							name="sysDepartmentId" value="${user.sysDepartmentId}" /> <input name="departmentName"
							sysSelectResultName="result2_2" class="mtinput2" type="text" value="${user.departmentName}" /> <input
							type="hidden" sysSelectResultName="result3_2" name="organizeId" value="${user.organizeId}" /> </span>
					</div>
				</div>
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel">所属角色 </label> <span class="block mtinput2 mticon-input mticon-input-right"><i
							class="mtfa mt-search mtblue mtpointer" id="roleSelect"></i> <input type="hidden" sysSelectResultName="result1_1"
							name="sysRoleIds" value="${user.sysRoleIds}" /> <input name="sysRoleNames" sysSelectResultName="result2_1"
							type="text" value="${sysRoleName}" /> </span>
					</div>
				</div>
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel">电话 </label> <input type="text" class="mtinput3" name="mobilePhone"
							value="${user.mobilePhone}" />
					</div>
				</div>
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel">邮箱 </label> <input type="text" class="mtinput3" name="email" value="${user.email}" />
					</div>
				</div>
				<div class="mtrow">
					<div class="mtcol3">
						<label class="mtlabel">顺序 </label> <input type="text" name="showOrder" class="mtinput3" value="${user.showOrder}" />
					</div>
				</div>
			</div>
		</div>
	</form>
</body>
</html>
<script type="text/javascript">
	$(function() {
		//部门弹窗选择
		var deptOption = {
			el : "#deptSelect",
			host : "${ctx}",
			code : "sysDepartment",
			type : 2,
			index : 2
		}
		openSelectDialog(deptOption);
		//角色弹窗选择
		var roleOption = {
			el : "#roleSelect",
			host : "${ctx}",
			code : "sysRole",
			type : 1,
			index : 1
		}
		openSelectDialog(roleOption);
	});
</script>


